INCLUDE_DIRECTORIES(${LIBSDL_INCLUDE_DIR})
LINK_DIRECTORIES(${LIBSDL_LIBRARY_DIR})

ADD_LIBRARY(engine STATIC
    gameengine.cpp
    sprite.cpp
    timer.cpp
    #game.cpp
)

TARGET_LINK_LIBRARIES(engine SDL SDL_image SDL_ttf)

ADD_EXECUTABLE(texun main.cpp game.cpp)
TARGET_LINK_LIBRARIES(texun engine SDL SDL_image SDL_ttf)
